package ctx

import (
	"context"
	"net/http"
)

func SetHttpHandler(ctx context.Context, h http.Handler) context.Context {
	return Set(ctx, HttpHandlerKey{}, h)
}

func GetHttpHandler(ctx context.Context) (http.Handler, error) {
	return Get[http.Handler](ctx, HttpHandlerKey{})
}
